/*
 *    Copyright (c) 2020-2025, sunlei All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Author: sunlei (daizile@126.com)
 */
/*
{
    page:{
        current:1, //当前页数
        size:10   //每页长度
    },
    cond:{ //条件
        eq:{ // 多条件对象
                        id,//Integer 
                        signupId,//Integer 报名表ID(复用为团队ID)
                        userId,//Long 用户ID
                        teamName,//String 团队名称
                        memberName,//String 队员姓名
                        roleType,//Integer 0:队员 1:老师 2: 团队管理员
                        phone,//String 手机
                        idcard,//String 身份证
                        gradeId,//Integer 年级ID
                        gradeName,//String 年级名称
                        schoolName,//String 
                        email,//String 
                        province,//String 省
                        city,//String 市
                        area,//String 区
                        address,//String 详细地址
                        job,//String 工作
                        isDel,//Integer 0:正常 1:删除
                        state,//Integer 0:待确认,1:已确认
                    }
    }
}
 */
// 分页查询
function TeamPageList(query,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/team/pagequery","post",query,SuccessFunc,FailedFunc);
}
// 列表查询
function TeamqueryList(query,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/team/queryList","post",query,SuccessFunc,FailedFunc);
}
// 插入数据
function TeamaddObj(obj,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/team/save", "post", obj,SuccessFunc,FailedFunc)
}
// 主键获取数据
function TeamgetObj(id,SuccessFunc,FailedFunc){
    slAjax("/abkj-api-match-provider/team/"+id,"get",{},SuccessFunc,FailedFunc);
}

/**
 * 主键更新
 */
function TeamupdateById(query,SuccessFunc,FailedFunc) {
   slAjax("/abkj-api-match-provider/team/updateById","post",query,SuccessFunc,FailedFunc);
}
/**
 * 多条件 更新
 */
function TeamupdateByMulCond(query,SuccessFunc,FailedFunc) {
   slAjax("/abkj-api-match-provider/team/updateByMulCond","post",query,SuccessFunc,FailedFunc);
}
// 主键删除数据
function TeamdelObj(id,SuccessFunc,FailedFunc) {
  slAjax("/abkj-api-match-provider/team/delete/"+id,"get",{},SuccessFunc,FailedFunc);
}

